import request from '@/utils/request'
import cfg from '@/config/config'

const role = {
  //获取权限组
    getRuleMain:() =>{
        return request('get', cfg.apiUrl + 'api/bdRoleMain/tree');
    },
  //根据权限获取权限组
  getRuleMaintwo:() =>{
    return request('get', cfg.apiUrl + 'api/bdRoleMain/tree2');
  }
}

export default role;

